import request from '@/utils/request'

export function getRoleList (params) {
    return request({
        method: 'get',
        url: '/sys/role',
        params
    })
}



export function deletePeople (id) {
    return request({
        url: `/sys/role/${id}`,
        method: 'delete'
    })
}




export function addRoleList (data) {
    return request({
        url: '/sys/role',
        data,
        method: 'post'
    })
}


export function getPeopleDetail (id) {
    return request({
        url: `/sys/role/${id}`,
        method: 'get'
    })
}


export function updatePeopleDetail (data) {
    return request({
        url: `/sys/role/${data.id}`,
        method: 'put',
        data
    })
}